package com.xhui.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.xhui.entity.Book;

/**
 * 创建一个接口IBookService，I是interface的首字母大写
 */
public interface IBookService extends IService<Book> {

    Boolean saveBook(Book book);

    Boolean modify(Book book);

    Boolean delete(Integer id);

    IPage<Book> getPage(int currentPage, int pageSize);

    IPage<Book> getPage(int currentPage, int pageSize, Book book);
}
